/**
 * 
 */
package org.jenkon.assertion;

import org.jenkon.utils.NumberUtils;

/**
 * assertion methods for numerics.
 * 
 * @author jkonopka
 * 
 */
public final class NumberAssert {

	/**
	 * hide public constructor for this util class.
	 */
	private NumberAssert() {
	}

	/**
	 * @param value
	 *            the value to check is it positive
	 */
	public static void isPositive(final Number value) {
		Assert.isTrue(NumberUtils.isPositive(value),
				"the numeric value is not positive.");
	}

	/**
	 * @param value
	 *            the value to check is it negative
	 */
	public static void isNegative(final Number value) {
		Assert.isTrue(NumberUtils.isNegative(value),
				"the numeric value is not negative.");
	}

}
